package com.studentgrowth.repository;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.studentgrowth.model.Category;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import java.util.List;

@Mapper
public interface CategoryRepository extends BaseMapper<Category> {
    @Select("SELECT * FROM category WHERE is_hot = true")
    List<Category> findHotCategories();
} 